<div class="box-white"><?php echo $title?></div>
    <div class="box-content">
    <?php echo form_open(uri_string(),array('id'=>'checknew'));?>
    <table>
    <tr>
        <td>    
            <input type="hidden" name="AdminID" value="<?php echo $admin_id?>">
            <table class="form">
                <tr>
                    <td class="w150 label">Tên đăng nhập</td>
                    <td><input type="text" name="login_name" class="w200" value="<?php echo $login_name?>"></td>
                </tr>
                <tr>
                    <td class="label">Mật khẩu</td>
                    <td><input type="password" name="password" class="w200" value=""></td>
                </tr>
                <tr>
                    <td class="label">Nhắc lại mật khẩu</td>
                    <td><input type="password" class="w200" name="re_password"></td>
                </tr> 
                <tr>
                    <td colspan="2" class="footer"><input type="submit" name="bt_submit" class="capnhat"></td>
                </tr>               
            </table>
        </td>
        <td>
            <h4>Phân quyền <input type="checkbox" name="sa" id="sa" onclick="check_chose('sa', 'ar_id[]', 'checknew')" /> Chọn tất cả</h4>
            <table class="admindata">
            <?
            $k=1;
            foreach($list as $val):
            $list_f  = $this->admin->get_list_func($val->permission_id);
            ?>
            <tr class="row<?php echo $k?>">
                <td>
                    <div class="permission_name"><b><?php echo $val->permission_name?></b> [<?php echo $val->permission_notice?>]</div>
                    <div style="overflow: hidden;">
                        <?foreach($list_f as $func):?>
                            <span class="permit_name"><input type="checkbox" name="ar_id[]" value="<?php echo $func->function_id?>" <?php echo ($this->admin->get_item_permit_admin($func->function_id,$admin_id))?'checked="checked"':'';?>> <?php echo $func->function_notice?></span>
                        <?endforeach;?>
                    </div>
                </td>
            </tr>
            <?
            $k=1-$k;
            endforeach;?>        
        </td>
    </tr>
    </table>
    <?php echo form_close();?>
    <div>
</div>